package com.zkingsoft.laqeelin.dao;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import com.matrix.core.pojo.PaginationVO;
import com.zkingsoft.laqeelin.bean.BizShare;

/**
 * @description (分享表)
 * @author 何明
 * @date 2018-09-01 10:35
 */
public interface BizShareDao{

	public int insert(@Param("item") BizShare bizShare);
   	
   	public int batchInsert(@Param("list") List<BizShare> bizShareList);
   	
	public int updateByMap(Map<String, Object> modifyMap);
	
	public int updateByModel(@Param("record")BizShare bizShare);
	
	public int deleteByIds(@Param("list") List<String> list);
	
	public int deleteById(String shaId);

	public int deleteByModel(@Param("record") BizShare bizShare);
	
	public List<BizShare> selectInPage(@Param("record") BizShare bizShare, @Param("pageVo") PaginationVO pageVo);

	public List<BizShare> selectByModel(@Param("record") BizShare bizShare);
	
	public int selectTotalRecord(@Param("record") BizShare bizShare);
	
	public BizShare  selectById(String shaId);
	
	public BizShare  selectForUpdate(String shaId);
	
	public BizShare  selectShareInfo(@Param("openId") String openId,@Param("actId") String actId);
	
	
	public BizShare  selectByIdAndOpenId(@Param("openId") String openId,@Param("shaId") String shaId);
}